<?php
  $country = ["zh", "en", "yue", "jp", "kor", "fra", "spa", "th", "ara", "ru", "pt", "de", "it", "el", "nl", "pl", "bul", "est", "dan", "fin", "cs", "rom", "slo", "swe", "hu", "cht", "vie"];
  $hostname = $_SERVER['HTTP_HOST'];
  $subdomain = explode('.', $hostname)[0];
  $language = 'en';
  if (in_array($subdomain, $country)) {
      $language = $subdomain;
  }
  ?>
  <!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    
    <title>{usu_fanyi($seo_title, $language)}</title>
    <meta content="{usu_fanyi($meta_keywords, $language)}" name="keywords" />
    <meta content="{usu_fanyi($seo_des, $language)}" name="description" />
    <script type="text/javascript">
        var is_mobile_cms = '{IS_MOBILE}';
        var web_dir = '{WEB_DIR}';
    </script>
    <script src="{LANG_PATH}lang.js" type="text/javascript"></script>
    <script src="{THEME_PATH}assets/global/plugins/jquery.min.js" type="text/javascript"></script>
    <script src="{THEME_PATH}assets/js/cms.js" type="text/javascript"></script>
    {SITE_TONGJI}
    <link href="{SITE_LOGO}" rel="shortcut icon" type="image/x-icon">
    <meta http-equiv="Content-Language" content="en-US">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="wap-font-scale" content="no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta name="Robots" content="all">
    <meta name="renderer" content="webkit">
    <link href="{HOME_THEME_PATH}css/core.css" rel="stylesheet">
    <link href="{HOME_THEME_PATH}css/anim.css" rel="stylesheet">
    <link href="{HOME_THEME_PATH}css/font-awesome.css" rel="stylesheet">
    <link href="{HOME_THEME_PATH}css/style.css" rel="stylesheet">
    <link href="{HOME_THEME_PATH}css/common.css" rel="stylesheet">
    <script src="{HOME_THEME_PATH}js/jquery.js"></script>
    <script src="{HOME_THEME_PATH}js/core.js"></script>
    <script src="{HOME_THEME_PATH}js/anim.js"></script>
    <script src="{HOME_THEME_PATH}js/clipboard.min.js"></script>
</head>
